package check

import (
	"github.com/cilidm/toolbox/str"
	imgext "github.com/shamsher31/goimgext"
	"path"
)

func IsImg(fileName string) int {
	ext := imgext.Get()
	if str.IsContain(ext, path.Ext(fileName)[1:]) {
		return 1
	}
	return 0
}
